{include file="public/header" title="分类管理"}
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
    <div class="padding border-bottom">
        <button type="button" class="button border-yellow" onclick="window.location.href='#add'"><span class="icon-plus-square-o"></span> 添加分类</button>
    </div>
    <table class="table table-hover text-center">
        <tr>
            <th width="5%">ID</th>
            <th width="15%">分类名称</th>
            <th width="10%">排序</th>
            <th width="10%">操作</th>
        </tr>
        {volist name="list" id="v" }
        <tr>
            <td>{$v.id}</td>
            <td>
                {$v.name}
            </td>
            <td>
                {empty name="$v.sort"}
                无数据
                {else /}
                {$v.sort}
                {/empty}

            </td>
            <td><div class="button-group"> <a class="button border-main" href="{:url('cateedit',['pid'=>$v['id']])}"><span class="icon-edit"></span> 修改</a> <a class="button border-red" href="javascript:void(0)" onclick="return del(1,2)"><span class="icon-trash-o"></span> 删除</a>
                <a class="button border-red" href="{:url('cateRedel',['id'=>$v['id']])}" onclick="return redel(1,1,1)"><span class="icon-trash-o"></span> 还原</a>
            </div></td>
        </tr>
        {/volist}
    </table>
</div>
<script type="text/javascript">
    function del(id,mid){
        if(confirm("您确定要删除吗?")){

        }else{
            return false;
        }
    }
    function redel(id,mid){
        if(confirm("您确定要还原吗?")){

        }else{
            return false;
        }
    }
</script>
</div>
</body>
</html>